<template>
	<view class="calender">
		<view class="header">
			<w-calendar :lunar="false"
			    :disabledBefore="true" 
			    :disabledAfter="false" 
			    @confirm="getResult"></w-calendar>
		</view>
		<view class="container">
			
		</view>
		<view class="footer">
			记录明细
		</view>
		<view class="footer-btn">
			<view class="btn">
				<image src="../../static/logo.png" mode=""></image>
				<text>记录</text>
			</view>
			<view class="btn">
				<image src="../../static/logo.png" mode=""></image>
				<text>统计分析</text>
			</view>
		</view>
	</view> 
</template>

<script>
	import wCalendar from "@/components/w-calendar/w-calendar.vue";
	export default {
		components:{wCalendar},
		data() {
			return {
				result:{}
			}
		},
		methods: {
			getResult(res){
				// console.log(res);
				// this.result=res;
			}
		}
	}
</script>

<style scoped lang="less">
.calender{
	background-color: #104082;
	.container{
		background-color: #fff;
		height: 250rpx;
		margin: 40rpx;
		border-radius: 25rpx;
	}
	.footer{
		background-color: #fff;
		height: 120rpx;
		margin:40rpx;
		border-radius: 25rpx;
		line-height: 120rpx;
		padding-left: 20rpx;
	}
	.footer-btn{
		height: 150rpx;
		background-color: #fff;
		display: flex;
		align-items: center;
		justify-content: space-around;
		border-radius: 50rpx 50rpx 0 0;
		.btn{
			display: flex;
			flex-direction: column;
			align-items: center;
			color: #7aa2dd;
			image{
				width: 50rpx;
				height: 50rpx;
			}
			text{
				margin-top: 10rpx;
			}
		}
	}
}
</style>
